<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitealbum
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: changes.tpl 2011-08-026 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
?>
<h2>
  <?php echo $this->translate("Advanced Photo Albums Plugin") ?>
</h2>
<?php if( count($this->navigation) ): ?>
<div class='tabs'>
  <?php
    // Render the menu
    echo $this->navigation()->menu()->setContainer($this->navigation)->render()
  ?>
</div>
<?php endif; ?>
<?php if($this->showTip): ?>
<div class="tip">
  <span>
    <?php echo $this->translate('The mandatory changes mentioned below have not been made in the activity feed template file. If you want to enable the advanced lightbox display for album photos in Activity Feeds then please do the below mentioned template level changes.');?>
  </span>
</div>
<?php endif;?>
<div class='clear seaddons_settings_form'>
  <div class='settings'>
    <?php echo $this->form->render($this) ?>
  </div>
</div>


<script type="text/javascript">
   window.addEvent('domready', function() {
     show_activitymanual(<?php echo Engine_Api::_()->getApi('settings', 'core')->getSetting('socialengineaddon.lightbox.activityedit', 0) ?>);
    });

	function show_activitymanual(option) {
		if($('socialengineaddon_lightbox_activityedit-0').checked) {
			if(option == 1) {
				$('socialengineaddon_show_activitymanual-wrapper').style.display = 'none';
			}
			else {
				$('socialengineaddon_show_activitymanual-wrapper').style.display = 'block';
			}
		}
		else {
			$('socialengineaddon_show_activitymanual-wrapper').style.display = 'none';
		}
	}
</script>